/* Prevent stacking of IceCube, SoSnowy */
.bttv-global-emo-5849c9a4f52be01a7ee5f79d + .bttv-global-emo-5849c9a4f52be01a7ee5f79d,
.bttv-global-emo-567b5b520e984428652809b6 + .bttv-global-emo-567b5b520e984428652809b6 {
  display: none;
}

/* Ice Cube */
div[data-test-selector='emote-button']
  + span[data-a-target='chat-message-text']
  span
  .bttv-global-emo-5849c9a4f52be01a7ee5f79d,
div.bttv-emote + .bttv-global-emo-5849c9a4f52be01a7ee5f79d,
img.emoji.yt-live-chat-text-message-renderer + .bttv-global-emo-5849c9a4f52be01a7ee5f79d {
  margin-left: -33px;
}

/* SoSnowy */
div[data-test-selector='emote-button']
  + span[data-a-target='chat-message-text']
  span
  .bttv-global-emo-567b5b520e984428652809b6,
div.bttv-emote + .bttv-global-emo-567b5b520e984428652809b6,
img.emoji.yt-live-chat-text-message-renderer + .bttv-global-emo-567b5b520e984428652809b6 {
  margin-left: -32px;
}

/* SantaHat */
div[data-test-selector='emote-button']
  + span[data-a-target='chat-message-text']
  span
  .bttv-global-emo-58487cc6f52be01a7ee5f205,
div.bttv-emote + .bttv-global-emo-58487cc6f52be01a7ee5f205,
img.emoji.yt-live-chat-text-message-renderer + .bttv-global-emo-58487cc6f52be01a7ee5f205 {
  margin-left: -34px;
  margin-top: -18px;
}

/* TopHat, CandyCane, ReinDeer */
div[data-test-selector='emote-button']
  + span[data-a-target='chat-message-text']
  span
  .bttv-global-emo-5849c9c8f52be01a7ee5f79e,
div.bttv-emote + .bttv-global-emo-5849c9c8f52be01a7ee5f79e,
img.emoji.yt-live-chat-text-message-renderer + .bttv-global-emo-5849c9c8f52be01a7ee5f79e,
div[data-test-selector='emote-button']
  + span[data-a-target='chat-message-text']
  span
  .bttv-global-emo-567b5c080e984428652809ba,
div.bttv-emote + .bttv-global-emo-567b5c080e984428652809ba,
img.emoji.yt-live-chat-text-message-renderer + .bttv-global-emo-567b5c080e984428652809ba,
div[data-test-selector='emote-button']
  + span[data-a-target='chat-message-text']
  span
  .bttv-global-emo-567b5dc00e984428652809bd,
div.bttv-emote + .bttv-global-emo-567b5dc00e984428652809bd,
img.emoji.yt-live-chat-text-message-renderer + .bttv-global-emo-567b5dc00e984428652809bd {
  margin-left: -31px;
  margin-top: -18px;
}

/* cvHazmat, cvMask */
div[data-test-selector='emote-button']
  + span[data-a-target='chat-message-text']
  span
  .bttv-global-emo-5e76d338d6581c3724c0f0b2
  img,
div.bttv-emote + .bttv-global-emo-5e76d338d6581c3724c0f0b2 img,
img.emoji.yt-live-chat-text-message-renderer + .bttv-global-emo-5e76d338d6581c3724c0f0b2 img,
div[data-test-selector='emote-button']
  + span[data-a-target='chat-message-text']
  span
  .bttv-global-emo-5e76d399d6581c3724c0f0b8
  img,
div.bttv-emote + .bttv-global-emo-5e76d399d6581c3724c0f0b8 img,
img.emoji.yt-live-chat-text-message-renderer + .bttv-global-emo-5e76d399d6581c3724c0f0b8 img {
  height: 34px;
  width: 34px;
}

div[data-test-selector='emote-button']
  + span[data-a-target='chat-message-text']
  span
  .bttv-global-emo-5e76d338d6581c3724c0f0b2,
div.bttv-emote + .bttv-global-emo-5e76d338d6581c3724c0f0b2,
img.emoji.yt-live-chat-text-message-renderer + .bttv-global-emo-5e76d338d6581c3724c0f0b2,
div[data-test-selector='emote-button']
  + span[data-a-target='chat-message-text']
  span
  .bttv-global-emo-5e76d399d6581c3724c0f0b8,
div.bttv-emote + .bttv-global-emo-5e76d399d6581c3724c0f0b8,
img.emoji.yt-live-chat-text-message-renderer + .bttv-global-emo-5e76d399d6581c3724c0f0b8 {
  margin-left: -34px;
}

.bttv-emote-image {
  position: relative;
  vertical-align: middle;
  margin: -0.5rem 0;
}

div[data-test-selector='emote-button'] + span[data-a-target='chat-message-text'] span .bttv-emote-overlay,
div.bttv-emote + .bttv-emote-overlay,
img.emoji.yt-live-chat-text-message-renderer + .bttv-emote-overlay {
  margin-left: -32px;
}

.bttv-emote.seventv-channel img {
  max-height: 28px;
  width: auto;

  &.bttv-tooltip-emote-image {
    max-height: 112px;
  }
}

.bttv-tooltip-emote-image {
  max-height: 112px;
  width: auto;
  max-width: 336px;
  border-radius: 0.2rem;
  overflow: hidden;
  margin-bottom: 8px;
}
